package com.gupaoedu.vip;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )  {

        /*IHelloService iHelloService = new HelloServiceImpl();
        RpcProxyServer  rpcProxyServer = new RpcProxyServer();
        rpcProxyServer.publisher(iHelloService,8080);*/

        //改造
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        ((AnnotationConfigApplicationContext)context).start();


    }
}
